﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection.Metadata.Ecma335;
using System.Text;

namespace ConsoleApp1
{
    public class Computer
    {
       //加法
        public double Add(double num1,double num2)
        {
            return  num1 + num2;
        }

        //加法2
        public void Add2(double num1,double num2)
        {
            double sum = num1 + num2;
            Console.WriteLine(sum);    
        
        }
        //减法
        public double Minus(double num1, double num2)
        {
            return num1 - num2;
        }
        //减法2
        public void Minus2(double num1,double num2)
        {
            double sum = num1 - num2;
            Console.WriteLine(sum);
        }

        //乘法
        public  double Multiply(double num1, double num2)
        {
            return num1 * num2;
        }

        //乘法2
        public  void Multiply2 (double num1, double num2)
        {
            double sum = num1 * num2;
            Console.WriteLine(sum);
        }
        //除法
        public  double Divide(double num1, double num2)
        {
            return num1 / num2;
        }
        //除法2
        public  void Divide2(double num1,double num2)
        {
            double sum = num1 / num2;
            Console.WriteLine(sum);
        }
         
    }
}
